<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/

Route::get('/', 'HomeController@getIndex');

Route::post('login', 'UserController@postLogin');
Route::get('login', 'UserController@getLogin');

Route::post('register', 'UserController@postRegister');
Route::get('register', 'UserController@getRegister');

Route::get('success', 'UserController@getSuccess');
Route::get('login_success', 'UserController@getLoginSuccess');

Route::controller('admin','AdminController');

//LEAGUE MANAGE DIRECTION
Route::get('admin/league', 'AdminController@getLeague');

Route::get('admin/league-add', 'AdminController@getLeagueAdd');
Route::post('admin/league-add', 'AdminController@postLeagueAdd');

Route::get('league-delete', 'AdminController@getLeagueDelete');
Route::post('league-delete', 'AdminController@postLeagueDelete');

Route::get('admin/league-modify', 'AdminController@getLeagueModify');
Route::post('admin/league-modify', 'AdminController@postLeagueModify');



//SPORT MANAGE DIRECTION
Route::get('admin/sport', 'AdminController@getSport');

Route::get('admin/sport-add', 'AdminController@getSportAdd');
Route::post('admin/sport-add', 'AdminController@postSportAdd');

Route::get('sport-delete', 'AdminController@getSportDelete');
Route::post('sport-delete', 'AdminController@postSportDelete');

Route::get('admin/sport-modify', 'AdminController@getSportModify');
Route::post('admin/sport-modify', 'AdminController@postSportModify');


//LEAGUE MANAGE DIRECTION
Route::get('admin/team', 'AdminController@getTeam');

Route::get('admin/team-add', 'AdminController@getTeamAdd');
Route::post('admin/team-add', 'AdminController@postTeamAdd');

Route::get('team-delete', 'AdminController@getTeamDelete');
Route::post('team-delete', 'AdminController@postTeamDelete');

Route::get('admin/team-modify', 'AdminController@getTeamModify');
Route::post('admin/team-modify', 'AdminController@postTeamModify');


